@import './../../../app/mixins.css';

.wrapper {
  width: 100%;
  height: 112px;
  padding-top: 15px;
  padding-bottom: 15px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;

  & .stickyContent {
    position: relative;
    height: 78px;
    z-index: 9;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  & .bg {
    position: fixed;
    width: 100%;
    height: 0px;
    left: 0;
    top: 73px;
    z-index: 0;
    border-bottom: solid 1px var(--color-platinum);
    background-color: var(--color-white);
    opacity: 0;
    transition: all ease 250ms;
  }

  &.sticky {
    & .stickyContent {
      position: fixed;
      top: 73px;
      width: 100%;
      padding: 0 26px 0 24px;
      margin-left: -24px;
      box-sizing: border-box;
      max-width: 1368px;
    }

    & .bg {
      opacity: 1;
      z-index: 1;
      height: 78px;
    }
  }
}

.info {
  display: flex;
  flex-flow: row nowrap;
  height: 58px;

  & > div {
    display: flex;
    flex-flow: column wrap;
    height: 40px;
    width: 130px;
    padding: 19px 20px;

    & .icon {
      width: 22px;
      height: 100%;
      flex: 1 100%;
      align-items: center;
      display: flex;
      margin: 0;

      & img {
        width: 100%;
      }
    }

    & > .subTitle,
    & h5 {
      height: 50%;
      margin: 0;
      display: flex;
      justify-content: flex-start;
      padding-left: 15px;
      border-right: solid 1px var(--color-platinum);
      width: calc(100% - 20px);
      color: var(--color-content-light);
    }

    & > .subTitle {
      align-items: flex-end;
      font-size: var(--font-size-small-secondary);
      color: var(--color-slate-gray);
    }

    & h5 {
      font-weight: bold;
      align-items: center;
    }

    &.total {
      width: 110px;
      padding: 9px 14px 9px 0;

      & figure {
        width: 18px;
      }
    }

    &.addedVotes {
      width: 90px;
      padding: 9px 13px 9px 30px;
    }

    &.removedVotes {
      width: 114px;
      padding: 9px 14px 9px 28px;
    }

    &.fee {
      padding: 9px 11px 9px 29px;
      width: 190px;

      & > .subTitle,
      & h5 {
        border-right: none;
      }
    }

    &.signedOut {
      width: auto;
      display: block;
      margin: 0;
      padding: 0;
      height: 56px;

      & > .subTitle,
      & h5 {
        border-right: none;
      }

      & .subTitle {
        padding: 0;
        width: auto;
        line-height: 20px;
        height: 20px;
        padding-top: 7px;
      }
    }
  }
}

.actionBar {
  height: 40px;
  padding: 19px 0;

  & a,
  & button {
    height: 40px !important;
    line-height: 40px;
    margin-top: 0;
  }
}

.box,
.outlinedBox {
  @mixin contentNormal;

  display: inline-block;
  padding: 7px 10px;
  margin-right: 20px;
  margin-top: 10px;
  color: var(--color-slate-gray);

  & b {
    font-weight: var(--font-weight-bold);
    color: var(--color-maastricht-blue);
  }

  & h2 {
    @mixin headingNormalIntermediate;

    margin: 0 0 -4px;
    color: var(--color-maastricht-blue);
  }

  & h3 {
    @mixin headingNormal;

    margin: 0;
    color: var(--color-maastricht-blue);
  }
}

.tooltip {
  display: inline-block;
  vertical-align: text-top;
}

.btn {
  margin-left: 25px;
  margin-top: 25px;
}

@media (--medium-viewport) {
  .hideInMedium {
    display: none;
  }
}
